﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for SanPhamInfo
/// </summary>
///  public class
[Serializable()] public class SanPhamInfo
{
    private string id = "";

    private string seri = "";
    private string nhomId = "";
    private string parentId = "";
    private string loaiId = "";
    private string tenHang = "";
    private string tomLuoc = "";
    private string noiDung = "";
    private string giaBanThamKhao = "0";
    private string picUrl = "";
    private string userName = "";
    private string ngayNhap = "";
    private string active = "";
    private string del = "";
    private string hangMoi = "";
    private string daBan = "";

    private string spHot = "";
    private string banChay = "";
    private string conHang = "";
    private string quaTang = "";
    private string chietKhau = "0";
    private string giaBanCoChietKhau = "0";
    private string tenNhom = "";
    private string noiSXID="";
    private string tenNoiSX = "";
    private string tenLoai = "";




    private int soLuongDatMua = 0;//Dung cho gio hang

    public string Id
    {
        get { return id; }
        set { id = value; }
    }

    public string Seri
    {
        get { return seri; }
        set { seri = value; }
    }

    public string NhomId
    {
        get { return nhomId; }
        set { nhomId = value; }
    }

    public string ParentId
    {
        get { return parentId; }
        set { parentId = value; }
    }

    public string LoaiId
    {
        get { return loaiId; }
        set { loaiId = value; }
    }

    public string TenHang
    {
        get { return tenHang; }
        set { tenHang = value; }
    }

    public string TomLuoc
    {
        get { return tomLuoc; }
        set { tomLuoc = value; }
    }

    public string NoiDung
    {
        get { return noiDung; }
        set { noiDung = value; }
    }

    public string GiaBanThamKhao
    {
        get { return giaBanThamKhao; }
        set { giaBanThamKhao = value; }
    }

    public string PicUrl
    {
        get { return picUrl; }
        set { picUrl = value; }
    }

    public string UserName
    {
        get { return userName; }
        set { userName = value; }
    }

    public string NgayNhap
    {
        get { return ngayNhap; }
        set { ngayNhap = value; }
    }

    public string Active
    {
        get { return active; }
        set { active = value; }
    }

    public string Del
    {
        get { return del; }
        set { del = value; }
    }

    public string HangMoi
    {
        get { return hangMoi; }
        set { hangMoi = value; }
    }

    public string DaBan
    {
        get { return daBan; }
        set { daBan = value; }
    }

    public string SpHot
    {
        get { return spHot; }
        set { spHot = value; }
    }

    public string BanChay
    {
        get { return banChay; }
        set { banChay = value; }
    }
    public string ConHang
    {
        get { return conHang; }
        set { conHang = value; }
    }
    public string QuaTang
    {
        get { return quaTang; }
        set { quaTang = value; }
    }
    public string ChietKhau
    {
        get { return chietKhau; }
        set { chietKhau = value; }
    }

    public string GiaBanCoChietKhau
    {
        get { return giaBanCoChietKhau; }
        set { giaBanCoChietKhau = value; }
    }

    public int SoLuongDatMua
    {
        get { return soLuongDatMua; }
        set { soLuongDatMua = value; }
    }

    public string TenNhom
    {
        get { return tenNhom; }
        set { tenNhom = value; }
    }

    public string NoiSxid
    {
        get { return noiSXID; }
        set { noiSXID = value; }
    }

    public string TenNoiSx
    {
        get { return tenNoiSX; }
        set { tenNoiSX = value; }
    }

    public string TenLoai
    {
        get { return tenLoai; }
        set { tenLoai = value; }
    }

    public bool isSanPham(SanPhamInfo sp)
    {
        if (this.id == sp.id)
        {
            return true;
        }
        return false;
    }
}
